﻿
namespace CPN.PJN.Silverlight.Extensions.Validation
{
    public class RequiredStringValidator : ValidatorBase<string>
    {
        public RequiredStringValidator()
        {
            this.DefaultMessage = "Ce champs est requis";
        }

        public override bool Validate(string value)
        {
            if (value == null)
                return false;

            return !string.IsNullOrEmpty(value.Trim());
        }
    }
}
